<?php
$password = "Fuu454545";

if (preg_match(
"/^.*(?=.{8,})(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).*$/",
$password)) {

echo "Your passwords is strong.";
} else
if (preg_match(
"/^.*(?=.{8,})(?=.*[a-z])(?=.*[A-Z]).*$/",
$password)) {
echo "Your passwords is medium.";
}else
if (preg_match(
"/^.*(?=.*[a-z])(?=.*[A-Z]).*$/",
$password)) {
echo "Your passwords is poor.";
}


 else {
echo "Your password is weak.";
}
